<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%
	Object object = com.web.auth.HttpSessionUtil.isLogin(request
			.getSession());
	if (object == null
			|| Boolean.parseBoolean(object.toString()) == false) {
		HttpServletResponse res = (HttpServletResponse) response;
		//response.sendRedirect("login.jsp");

	} else {
		response.sendRedirect("query.jsp");
	}
%>
<html>
	<head>
		<title>JSP for LoginForm form</title>
	</head>
	<body>
		<center>
			<html:form action="/login">
			Login_ID : <html:text property="username" />
				<html:errors property="username" />
				<br />
			Password : <html:password property="userpw" />
				<html:errors property="userpw" />
				<br />
				<html:hidden property="imgcode" />
				<html:errors property="imgcode" />
				
                <font color="red"><%= request.getAttribute("errors")==null?"": request.getAttribute("errors") %></font>
                <br />
				<html:submit value="Login" />
				<html:cancel />
			</html:form>
		</center>
	</body>
</html>

